<template>
<div>
  java
  <div>
    <button @click="show('aa')">Aa页面</button>
  </div>
  <router-view />
</div>
</template>

<script>
export default {
  name: "A",
  methods:{
    show(index) {
      if(index == 'aa') {
        this.$router.push('/a/c')
      }
      if(index == 'b') {
        this.$router.push('/b')
      }
    }
  }
}
</script>

<style scoped>

</style>